package 行为型模型.责任链模式;

public abstract class Leader {
    protected String name;
    protected Leader nextLeader;//责任链后续对象

    public Leader(String name) {
        this.name = name;
    }
    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }

    public abstract void handleRequset(LeaveRequset leaveRequset);
}
